#include <stdio.h>
int factorial(int n)
 {
    if (n == 0)
	 {
        return 1;
    } else 
	{
        return n * factorial(n - 1);
    }
}

int main() {
    int n = 0;
    scanf("%d",&n);
    printf("%d! = %d\n", n, factorial(n));
    return 0;
}

#include <stdio.h>

int main() {
    int n = 5;
    int result = 1;
    
    for (int i = 1; i <= n; i++) {
        result *= i;
    }
    
    printf("%d! = %d\n", n, result);
    return 0;
}
